package com.ideaplugin.datamanager;

import cn.hutool.extra.spring.SpringUtil;
import com.mybatisflex.core.query.QueryColumnBehavior;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@MapperScan("com.ideaplugin.datamanager.mapper")
@Import(SpringUtil.class)
@ConfigurationPropertiesScan("com.ideaplugin.datamanager")
@EnableFileStorage
public class DataManagerApplication {

    public static void main(String[] args) {
        QueryColumnBehavior.isSmartConvertInToEquals();
        QueryColumnBehavior.setIgnoreFunction(o -> "".equals(o) || o == null);
        SpringApplication.run(DataManagerApplication.class, args);
    }


}
